<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-24
 * Time: 09:12
 * 商品信息表
 */

namespace app\api\model;


use think\model\concern\SoftDelete;

class Goods extends BaseModel
{
    use SoftDelete;

    public function imgs()
    {
        return $this->hasMany('GoodsImage','goods_id','id')->order('id asc');
    }

    public function sort()
    {
        return $this->belongsTo('GoodsSort','sort_id');
    }
}